.class public Les/wv;
.super Ljava/lang/Object;
.source "PrepareHandler.java"

# interfaces
.implements Les/sv;


# instance fields
.field private final a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private final b:Les/jv;

.field private final c:Les/cw;

.field private final d:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Landroid/util/Pair<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;>;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    invoke-static {}, Les/jv;->d()Les/jv;

    move-result-object v0

    iput-object v0, p0, Les/wv;->b:Les/jv;

    .line 3
    new-instance v0, Les/cw;

    invoke-direct {v0}, Les/cw;-><init>()V

    iput-object v0, p0, Les/wv;->c:Les/cw;

    .line 4
    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v0, p0, Les/wv;->d:Ljava/util/Map;

    .line 5
    invoke-static {}, Les/vu;->b()Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Les/wv;->a:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 1
    iget-object v0, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v0}, Les/jv;->a()V

    return-void
.end method

.method public a(Les/bv;)V
    .locals 9

    .line 35
    invoke-virtual {p1}, Les/fv;->a()I

    move-result v0

    .line 36
    invoke-virtual {p1}, Les/fv;->d()Ljava/lang/String;

    move-result-object v1

    .line 37
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "handleExtra\uff1a"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const-string v3, "PrepareHandler"

    invoke-static {v3, v2}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/16 v2, 0x10

    const/16 v4, 0xf

    if-eq v0, v4, :cond_0

    if-ne v0, v2, :cond_2

    .line 38
    :cond_0
    iget-object v5, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v5, v1}, Les/jv;->a(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 39
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "\u6b64\u76ee\u5f55\u4e0d\u7b97\u505a\u65e5\u5fd7\u76ee\u5f55\uff1a"

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v3, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    .line 40
    :cond_1
    iget-object v5, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v5, v1}, Les/jv;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    if-eqz v5, :cond_2

    .line 41
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "\u6b64\u76ee\u5f55\u5df2\u7ecf\u6309\u7167logName\u8bbe\u7f6e\uff0c\u65e0\u9700\u505a\u4efb\u4f55\u4fee\u6539\uff1a"

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v3, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    :cond_2
    const/16 v5, 0xe

    const/16 v6, 0xd

    const/4 v7, 0x1

    if-ne v0, v6, :cond_3

    .line 42
    iget-object v8, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v8}, Les/jv;->c()V

    goto :goto_0

    :cond_3
    if-ne v0, v5, :cond_5

    .line 43
    iget-object v8, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v8}, Les/jv;->c()V

    .line 44
    iget-object v8, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v8, v1}, Les/jv;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    if-eqz v8, :cond_4

    .line 45
    invoke-virtual {p1, v8}, Les/fv;->a(Ljava/lang/String;)V

    .line 46
    invoke-virtual {p1, v7}, Les/fv;->b(Z)V

    goto :goto_0

    .line 47
    :cond_4
    iget-object v8, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v8, v1}, Les/jv;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    if-eqz v8, :cond_5

    .line 48
    invoke-virtual {p1, v8}, Les/fv;->a(Ljava/lang/String;)V

    .line 49
    iget-object v8, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v8, v1}, Les/jv;->a(Ljava/lang/String;)Z

    move-result v8

    if-nez v8, :cond_5

    .line 50
    invoke-virtual {p1, v7}, Les/fv;->b(Z)V

    .line 51
    :cond_5
    :goto_0
    iget-object v8, p0, Les/wv;->c:Les/cw;

    invoke-virtual {v8, v1}, Les/cw;->d(Ljava/lang/String;)Les/cw$d;

    move-result-object v8

    if-eqz v8, :cond_b

    if-eq v0, v4, :cond_a

    if-ne v0, v6, :cond_6

    goto :goto_2

    :cond_6
    const/4 v4, 0x0

    if-eq v0, v2, :cond_9

    if-ne v0, v5, :cond_7

    goto :goto_1

    :cond_7
    const/16 v2, 0xb

    if-ne v0, v2, :cond_8

    .line 52
    invoke-virtual {v8, v7}, Les/cw$d;->b(Z)V

    goto :goto_3

    :cond_8
    const/16 v2, 0xc

    if-ne v0, v2, :cond_b

    .line 53
    invoke-virtual {v8, v4}, Les/cw$d;->b(Z)V

    goto :goto_3

    .line 54
    :cond_9
    :goto_1
    invoke-virtual {v8, v4}, Les/cw$d;->a(Z)V

    goto :goto_3

    .line 55
    :cond_a
    :goto_2
    invoke-virtual {v8, v7}, Les/cw$d;->a(Z)V

    .line 56
    :cond_b
    :goto_3
    iget-object v0, p0, Les/wv;->c:Les/cw;

    invoke-virtual {v0, v1}, Les/cw;->b(Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_c

    .line 57
    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v2

    if-eqz v2, :cond_d

    .line 58
    :cond_c
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "handleExtra->pids\u4e3a\u7a7a:"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v3, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 59
    :cond_d
    invoke-virtual {p1, v0}, Les/bv;->a(Ljava/util/List;)V

    return-void
.end method

.method public a(Les/gv;)V
    .locals 11

    .line 2
    invoke-virtual {p1}, Les/fv;->e()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object p1, p0, Les/wv;->d:Ljava/util/Map;

    invoke-interface {p1}, Ljava/util/Map;->clear()V

    return-void

    .line 4
    :cond_0
    invoke-virtual {p1}, Les/fv;->d()Ljava/lang/String;

    move-result-object v0

    .line 5
    iget-object v1, p0, Les/wv;->c:Les/cw;

    invoke-virtual {v1, v0}, Les/cw;->c(Ljava/lang/String;)Les/cw$d;

    move-result-object v1

    .line 6
    invoke-virtual {v1}, Les/cw$d;->b()J

    move-result-wide v2

    invoke-virtual {p1, v2, v3}, Les/gv;->a(J)V

    .line 7
    invoke-virtual {v1}, Les/cw$d;->c()Z

    move-result v2

    .line 8
    iget-object v3, p0, Les/wv;->a:Ljava/util/List;

    invoke-interface {v3, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v3

    .line 9
    iget-object v4, p0, Les/wv;->d:Ljava/util/Map;

    invoke-interface {v4, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/util/Pair;

    const/4 v5, 0x0

    if-nez v4, :cond_1

    move-object v6, v5

    goto :goto_0

    .line 10
    :cond_1
    iget-object v6, v4, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v6, Ljava/lang/String;

    :goto_0
    if-nez v4, :cond_2

    goto :goto_1

    .line 11
    :cond_2
    iget-object v4, v4, Landroid/util/Pair;->second:Ljava/lang/Object;

    move-object v5, v4

    check-cast v5, Ljava/lang/String;

    :goto_1
    const/4 v4, 0x1

    if-nez v3, :cond_8

    if-nez v6, :cond_3

    .line 12
    iget-object v6, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v6, v0}, Les/jv;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    :cond_3
    if-nez v6, :cond_4

    .line 13
    iget-object v5, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v5, v0}, Les/jv;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    :cond_4
    if-nez v2, :cond_6

    if-eqz v5, :cond_5

    .line 14
    iget-object v2, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v2, v0}, Les/jv;->a(Ljava/lang/String;)Z

    move-result v2

    xor-int/2addr v2, v4

    goto :goto_2

    :cond_5
    if-eqz v6, :cond_7

    const/4 v2, 0x1

    goto :goto_2

    :cond_6
    if-nez v5, :cond_7

    if-nez v6, :cond_7

    const/4 v2, 0x0

    :cond_7
    :goto_2
    if-eqz v5, :cond_8

    .line 15
    iget-object v2, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v2, v0}, Les/jv;->a(Ljava/lang/String;)Z

    move-result v2

    xor-int/2addr v2, v4

    .line 16
    invoke-virtual {p1, v4}, Les/fv;->a(Z)V

    .line 17
    iget-object v7, p0, Les/wv;->d:Ljava/util/Map;

    new-instance v8, Landroid/util/Pair;

    invoke-direct {v8, v6, v5}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-interface {v7, v0, v8}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 18
    invoke-virtual {p1, v4}, Les/fv;->a(Z)V

    .line 19
    invoke-virtual {p1, v5}, Les/fv;->a(Ljava/lang/String;)V

    .line 20
    :cond_8
    invoke-virtual {p1}, Les/gv;->h()Ljava/util/List;

    move-result-object v0

    .line 21
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_9
    :goto_3
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v7

    if-eqz v7, :cond_d

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Les/ev;

    const/4 v8, 0x2

    .line 22
    invoke-virtual {v7, v8}, Les/dv;->b(I)V

    .line 23
    invoke-virtual {v1}, Les/cw$d;->d()Z

    move-result v9

    invoke-virtual {v7, v9}, Les/dv;->b(Z)V

    .line 24
    invoke-virtual {v1}, Les/cw$d;->b()J

    move-result-wide v9

    invoke-virtual {v7, v9, v10}, Les/dv;->b(J)V

    or-int v9, v2, v3

    .line 25
    invoke-virtual {v7, v9}, Les/dv;->a(Z)V

    if-eqz v6, :cond_a

    .line 26
    invoke-virtual {v7, v8}, Les/dv;->a(I)V

    .line 27
    invoke-virtual {v7, v6}, Les/ev;->b(Ljava/lang/String;)V

    goto :goto_3

    :cond_a
    if-eqz v5, :cond_b

    .line 28
    invoke-virtual {v7, v4}, Les/dv;->a(I)V

    .line 29
    invoke-virtual {v7, v5}, Les/ev;->b(Ljava/lang/String;)V

    goto :goto_3

    :cond_b
    if-eqz v3, :cond_c

    const-string v8, "SDCards"

    .line 30
    invoke-virtual {v7, v8}, Les/ev;->b(Ljava/lang/String;)V

    goto :goto_3

    .line 31
    :cond_c
    invoke-virtual {p1}, Les/fv;->d()Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Les/iv;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    if-eqz v8, :cond_9

    .line 32
    invoke-virtual {v7, v4}, Les/dv;->a(Z)V

    .line 33
    invoke-virtual {v7, v4}, Les/dv;->a(I)V

    .line 34
    invoke-virtual {v7, v8}, Les/ev;->b(Ljava/lang/String;)V

    goto :goto_3

    :cond_d
    return-void
.end method

.method public a(Les/hv;)V
    .locals 11

    .line 60
    invoke-virtual {p1}, Les/fv;->e()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 61
    iget-object p1, p0, Les/wv;->d:Ljava/util/Map;

    invoke-interface {p1}, Ljava/util/Map;->clear()V

    return-void

    .line 62
    :cond_0
    invoke-virtual {p1}, Les/fv;->d()Ljava/lang/String;

    move-result-object v0

    .line 63
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 64
    iget-object v2, p0, Les/wv;->c:Les/cw;

    invoke-virtual {v2, v1}, Les/cw;->c(Ljava/lang/String;)Les/cw$d;

    move-result-object v2

    .line 65
    invoke-virtual {p1}, Les/hv;->h()Les/dv;

    move-result-object v3

    .line 66
    invoke-virtual {v2}, Les/cw$d;->b()J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Les/dv;->b(J)V

    .line 67
    instance-of v4, v3, Les/cv;

    if-eqz v4, :cond_2

    .line 68
    invoke-virtual {p1}, Les/fv;->a()I

    move-result v4

    const/4 v5, 0x3

    if-ne v4, v5, :cond_1

    return-void

    .line 69
    :cond_1
    invoke-virtual {p1}, Les/fv;->a()I

    .line 70
    :cond_2
    invoke-virtual {v2}, Les/cw$d;->c()Z

    move-result v4

    .line 71
    iget-object v5, p0, Les/wv;->a:Ljava/util/List;

    invoke-interface {v5, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v5

    .line 72
    iget-object v6, p0, Les/wv;->d:Ljava/util/Map;

    invoke-interface {v6, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Landroid/util/Pair;

    const/4 v7, 0x0

    if-nez v6, :cond_3

    move-object v8, v7

    goto :goto_0

    .line 73
    :cond_3
    iget-object v8, v6, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v8, Ljava/lang/String;

    :goto_0
    if-nez v6, :cond_4

    goto :goto_1

    .line 74
    :cond_4
    iget-object v6, v6, Landroid/util/Pair;->second:Ljava/lang/Object;

    move-object v7, v6

    check-cast v7, Ljava/lang/String;

    :goto_1
    const/4 v6, 0x1

    if-nez v5, :cond_a

    if-nez v8, :cond_5

    .line 75
    iget-object v8, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v8, v0}, Les/jv;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    :cond_5
    if-nez v8, :cond_6

    .line 76
    iget-object v7, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v7, v0}, Les/jv;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    :cond_6
    if-nez v4, :cond_8

    if-eqz v7, :cond_7

    .line 77
    iget-object v4, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v4, v0}, Les/jv;->a(Ljava/lang/String;)Z

    move-result v4

    xor-int/2addr v4, v6

    goto :goto_2

    :cond_7
    if-eqz v8, :cond_9

    const/4 v4, 0x1

    goto :goto_2

    :cond_8
    if-nez v7, :cond_9

    if-nez v8, :cond_9

    const/4 v4, 0x0

    :cond_9
    :goto_2
    if-eqz v7, :cond_a

    .line 78
    iget-object v4, p0, Les/wv;->b:Les/jv;

    invoke-virtual {v4, v0}, Les/jv;->a(Ljava/lang/String;)Z

    move-result v4

    xor-int/2addr v4, v6

    .line 79
    invoke-virtual {p1, v6}, Les/fv;->a(Z)V

    .line 80
    iget-object p1, p0, Les/wv;->d:Ljava/util/Map;

    new-instance v9, Landroid/util/Pair;

    invoke-direct {v9, v8, v7}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-interface {p1, v1, v9}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 81
    :cond_a
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 82
    invoke-virtual {v2}, Les/cw$d;->a()I

    move-result v0

    const/4 v9, 0x2

    if-eq v0, v6, :cond_b

    if-eq v0, v9, :cond_b

    const-string v10, "."

    .line 83
    invoke-virtual {p1, v10}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_b

    const/4 v0, 0x1

    .line 84
    :cond_b
    invoke-virtual {v2}, Les/cw$d;->d()Z

    move-result p1

    invoke-virtual {v3, p1}, Les/dv;->b(Z)V

    .line 85
    invoke-virtual {v3, v0}, Les/dv;->b(I)V

    or-int p1, v4, v5

    .line 86
    invoke-virtual {v3, p1}, Les/dv;->a(Z)V

    .line 87
    instance-of p1, v3, Les/ev;

    if-eqz p1, :cond_f

    .line 88
    move-object p1, v3

    check-cast p1, Les/ev;

    if-eqz v8, :cond_c

    .line 89
    invoke-virtual {p1, v9}, Les/dv;->a(I)V

    .line 90
    invoke-virtual {p1, v8}, Les/ev;->b(Ljava/lang/String;)V

    goto :goto_3

    :cond_c
    if-eqz v7, :cond_d

    .line 91
    invoke-virtual {p1, v6}, Les/dv;->a(I)V

    .line 92
    invoke-virtual {p1, v7}, Les/ev;->b(Ljava/lang/String;)V

    goto :goto_3

    :cond_d
    if-eqz v5, :cond_e

    const-string v0, "SDCards"

    .line 93
    invoke-virtual {p1, v0}, Les/ev;->b(Ljava/lang/String;)V

    goto :goto_3

    .line 94
    :cond_e
    invoke-static {v1}, Les/iv;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_f

    .line 95
    invoke-virtual {v3, v6}, Les/dv;->a(Z)V

    .line 96
    invoke-virtual {p1, v6}, Les/dv;->a(I)V

    .line 97
    invoke-virtual {p1, v0}, Les/ev;->b(Ljava/lang/String;)V

    :cond_f
    :goto_3
    return-void
.end method
